﻿ 
using Microsoft.EntityFrameworkCore;
using MongoDB.Bson.Serialization.Attributes;
using MongoDB.Bson;
 

namespace com.iot.core.mongo
{
    [Comment("带名称的DTO")]
    public class MongoCache
    {

        [BsonId]
        [BsonRepresentation(BsonType.String)]
        public string Id { get; set; }

        [Comment("值")]
        public string V { get; set; } = "";
 
        
        public DateTime ExpireAt { get; set; }

        public DateTime Crt_Dt
        {
            get; set;

        }
    }
}
